<?php

header("content-type:text/html.charset=utf-8");
require_once 'db_conn.php';
$conn;

$id = $_GET['id'];

$sql ="
delete from t_message
where id=$id;
";

//echo "$sql";
//die;

$result = $conn->query($sql);
if($result===false){
    echo "数据库删除失败";
} else {
    header("Location:index.php");
}

?>
